package com.shopping.service;

import com.shopping.bean.*;
import com.shopping.util.Page;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IOrderService {
   void submitOrder(Map<String,Object> orderData);


   // 查询订单列表的方法
   List<Order> getOrders(Page page, String text);
   List<Order> getOrdersByUserId(int userId);
   List<Orderinfo> getOrderInfosByOrderId(int orderId);
   int delete( Integer id);
   int addOrderAddress(OrderAddress orderAddress);

   String payment(Integer id);
   int paymentSuccess(HashMap map);
   Order getOrderByID(Integer id);
   int getCount(String text);

   void updateOrder(OrderUpdateDTO orderUpdateDTO);
   boolean updateOrderStatus(OrderUpdateStatusDTO dto);


}
